package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.model.domain.DmcRfidEventOldman;
import com.csun.cmny.provider.model.dto.rfid.RfidEventOldmanQueryDto;
import com.csun.cmny.provider.model.vo.rfid.DmcRfidEventOldmanVo;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DmcRfidEventOldmanMapper extends Mapper<DmcRfidEventOldman> {

    /**
     * query dmc rfid event oldman list with page
     *
     * @param rfidEventOldmanQueryDto the rfid event oldman query dto
     *
     * @return the list
     */
    List<DmcRfidEventOldmanVo> queryListWithPage(RfidEventOldmanQueryDto rfidEventOldmanQueryDto);

    /**
     * delete by label id
     *
     * @param deviceId the device id (rfid label id)
     *
     * @return the int.
     */
    Integer deleteByLabelId(Long deviceId);

    /**
     * delete by reader id
     *
     * @param deviceId the device id (rfid reader id)
     *
     * @return the int.
     */
    Integer deleteByReaderId(Long deviceId);
}